package com.yueya.basic.dept.model;

import com.jfinal.plugin.activerecord.Model;

@SuppressWarnings("serial")
public class DeptUser extends Model<DeptUser> {

	public static DeptUser dao = new DeptUser();

	public DeptUser findByUserId(String userId) {
		String sql = "select * from t_dept_user where user_id = '" + userId + "'";
		DeptUser de = dao.findFirst(sql);
		return de;
	}
}
